<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>留言本-{maccms:name}</title>
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" id="viewport" name="viewport">
<meta name="keywords" content="{maccms:keywords}" />
<meta name="description" content="{maccms:description}" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta http-equiv="Cache-Control" content="no-transform" />
<meta content="{maccms:name}" name="apple-mobile-web-app-title">
{maccms:include}
<link href="{maccms:path_tpl}/css/index_v2.css" rel="stylesheet" type="text/css">
<script>
function nofind(e){ 
	return e.src='{maccms:path_tpl}/images/focusDefault.jpg';
}
</script>
</head><body>
{maccms:head}


<div id="gbook_wrap">
  <div class="ui-gbook">
    <div class="liuyan">
      <a onclick="return click_a('ly_box')" class="ly_title">我也要留言</a>
      <div id="ly_box" style="display:none;">
       <form class="cmt_form clearfix" action="{maccms:path}index.php?m=gbook-save" method="post">
        <input type="hidden" id="g_rid" name="g_rid" value="">
          <div class="ui-form-item">
            <label class="ui-label">请输入您的昵称：</label>
            <input type="text" name="g_name" id="g_name" class="ui-input" value="{if-A:"{maccms:userid}"=""}{else-A}{maccms:username}{endif-A}">
          </div>
          <div class="ui-form-item">
            <label class="ui-label">请输入您的留言内容：</label>
            <textarea name="g_content" id="g_content" rows="3" class="ui-input ui-textarea" onKeyup="MAC.Remaining(this,200,'g_remaining')"></textarea>
          </div>
          <div class="ui-form-item">
            <input type="submit" class="ui-button" value="发送留言">
          </div>
        </form>
      </div>
    </div>
  
      {maccms:gbook pagesize=10 order=desc by=time}
        <dl>
         <dt><div><span class="gb-number">[gbook:id]</span>条留言</div></dt>
         <dd>
            <div class="ui-title"><span>[gbook:time]</span><h5>[gbook:name] </h5></div>
            <div class="ui-text">[gbook:content] </div>
            {if-B:!isN("[gbook:reply]")}
            <div class="ui-gb-cnt-min">
            <div class="ui-title">
              <h6>管理员回复</h6>
            </div>
            <div class="ui-text2">[gbook:reply]<br>
            </div>
          </div>
            {endif-B}
         </dd>
        </dl>
      {/maccms:gbook}
<div class="page">{maccms:pages len=10}</div>
  </div>
</div>

    <script language="javascript" type="text/javascript">
        function click_a(ly_box)
        {
            if(document.getElementById(ly_box).style.display != "block")
            {
                document.getElementById(ly_box).style.display = "block";
            }
            else
            {
                document.getElementById(ly_box).style.display = "none";
            }
        }
    </script>
{maccms:foot}
<script type="text/javascript" src="{maccms:path_tpl}js/list.min.js"></script>
</body>
</html>
